import request from "@/utils/request";
const Base = process.env.VUE_APP_BASE_API;

// 获取告警分级-列表
export function getAlarmLevelList(query) {
  return request({
    url: `${Base}/alarm/getAlarmLevelList`,
    method: "get",
    params: query,
  });
}
// 获取统一告警-列表
export function getAlarmList(query) {
  return request({
    url: `${Base}/alarm/getAlarmList`,
    method: "get",
    params: query,
  });
}

// 获取告警分级-统计
export function getAlarmLevelTotal(query) {
  return request({
    url: `${Base}/alarm/getAlarmLevelTotal`,
    method: "get",
    params: query,
  });
}

// 获取统一告警-统计
export function getAlarmTotal(query) {
  return request({
    url: `${Base}/alarm/getAlarmTotal`,
    method: "get",
    params: query,
  });
}